package cn.hh.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.hh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 *  店铺实体类
 */
@Data
public class Shop extends BaseDomain {
    // 店铺名称
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;

    // 电话
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;

    // 入驻时间
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime = new Date();

    // 1待审核  // 2待激活  // 3审核通过  // 4驳回
    @Excel(name = "状态" ,replace = {"1_待审核","2_审核通过待激活","3_激活成功","4_驳回"},orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 1;  // 状态

    // 地址
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;

    // logo
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;

    // 店铺管理员id
    private Long admin_id;

    // 店铺管理员关联对象
    private Employee employee;
}
